<template>
    <div>
        <Modal v-model="modal.detail" title="详情" width="1020">
            <div class="detail-info">
                <Row>
	<i-col span="12"><span class="detail-title">数据字典项编号：</span><span v-text="form.id"></span></i-col>
<i-col span="12"><span class="detail-title">数据字典编号：</span><span v-text="form.dictId"></span></i-col>


	<i-col span="12"><span class="detail-title">数据字典项值：</span><span v-text="form.dictValue"></span></i-col>
<i-col span="12"><span class="detail-title">数据字典项显示值：</span><span v-text="form.dictDisplayValue"></span></i-col>


	<i-col span="12"><span class="detail-title">数据字典项排序：</span><span v-text="form.dictOrder"></span></i-col>
<i-col span="12"><span class="detail-title">显示颜色：</span><span v-text="form.color"></span></i-col>


	<i-col span="12"><span class="detail-title">是否默认值：</span><span v-text="form.isDefault"></span></i-col>
<i-col span="12"><span class="detail-title">描述：</span><span v-text="form.description"></span></i-col>


	<i-col span="12"><span class="detail-title">版本号：</span><span v-text="form.version"></span></i-col>
<i-col span="12"><span class="detail-title">创建时间：</span><span v-text="form.createTime"></span></i-col>


	<i-col span="12"><span class="detail-title">更新时间：</span><span v-text="form.updateTime"></span></i-col>
<i-col span="12"><span class="detail-title">是否激活：</span><span v-text="form.isActive"></span></i-col>

</Row>

            </div>
        </Modal>
    </div>
</template>

<script>
	import * as utils from '@/api/utils-v2'
	import * as ResponseStatus from '@/api/response-status'
    export default {
        name: 'DataDictItemDetail',
        data() {
            return {
                modal: {
                    detail: false
                },
				dataDictCodes: ['IS_ACTIVE','DATA_DICT_IS_DEFAULT'],
				dataDictItems: {},
                form: {
                    id: null,
dictId: null,
dictValue: null,
dictDisplayValue: null,
dictOrder: null,
color: null,
isDefault: null,
description: null,
version: null,
createTime: null,
updateTime: null,
isActive: null,

                }
            }
        },
        computed: {},
        mounted() {},
        methods: {
			getDictItemsDisplayValue() {
			    utils.getDataDict(this.dataDictCodes).then(response => {
			    if (response) {
			        this.dataDictItems = response
			        
			        utils.getDetailDictItemDisplayValue(this, 'IS_ACTIVE', 'isActive')
					utils.getDetailDictItemDisplayValue(this, 'DATA_DICT_IS_DEFAULT', 'isDefault')
			    }
			    }).catch(error => {
			    console.log(error)
			    })
			}
		}
    }
</script>

<style>

</style>
